package net.pulseproject.commons.midi.collection;

import java.util.Collection;

import net.pulseproject.commons.midi.entity.Device;

public class InOutDevices {
	
	private final Collection<Device> transmitters;
	
	private final Collection<Device> receivers;

	public InOutDevices(final Collection<Device> transmitters, final Collection<Device> receivers) {
		if(transmitters == null) { throw new IllegalArgumentException("transmitters == null"); }
		if(receivers == null) { throw new IllegalArgumentException("receivers == null"); }
		this.transmitters = transmitters;
		this.receivers = receivers;
	}

	public final Collection<Device> getTransmitters() {
		return this.transmitters;
	}

	public final Collection<Device> getReceivers() {
		return this.receivers;
	}
    
}
